import service from '@/utils/request';

// 新闻轮播图
export function getNewsList(data) {
  return service({
    url: '/system/news/list',
    method: 'get'
  })
}

// 锥形图
export function getPositionPerson(data) {
  return service({
    url: '/system/position/person/list',
    method: 'get'
  })
}

// 销售统计图
export function getTurnoverList(data) {
  return service({
    url: '/system/turnover/list',
    method: 'get',
    params: data
  })
}


// 部门人数任务量
export function getDeptTask() {
  return service({
    url: '/system/dept/person/list',
    method: 'get'
  })
}
